<ol>
    <li>
        <h3>[html标签跳转]</h3>
        <pre><code class="language-javascript">&lt;a href="#!init"&gt;跳转到初始化页面&lt;/a&gt;</code></pre>
        <div><a href="#!init">跳转到初始化页面</a></div>
    </li>

    <li>
        <h3>[调用函数跳转]</h3>
        <pre><code class="language-javascript">H.go('test');</code></pre>
        <div><button id="go_btn">H.go('test')</button></div>
    </li>
    <script>
        //go to test1.
        var go_btn = document.getElementById('go_btn');
        go_btn.onclick = function() {
            H.go('test');
        };
    </script>

    <li>
        <h3 id="setOptions">[获取当前地址Hash]</h3>
        <pre><code class="language-javascript">H.getNowUrl();</code></pre>
        H.getNowUrl(); => <span id="url_text"></span>
    </li>
    <script>
        //get now url.
        var url_text = document.getElementById('url_text');
        url_text.innerHTML = H.getNowUrl();
    </script>
</ol>
<script src="js/prism/prism.js"></script>
